#include <iostream>
#include <string>
// 包含SpireMS SDK头文件
#include <sms_core.h>


void callback(nlohmann::json msg)
{
    std::cout << msg << std::endl;
}


int main(int argc, char *argv[])
{
    sms::Subscriber sub("/topic/pose", "geometry_msgs::Pose", callback);
    sub.join();
    return 0;
}

